//package com.java1234.rocketmq;
//
//import org.apache.rocketmq.spring.annotation.MessageModel;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Component;
//
///**
// * @author zhaolin
// * @version 1.0
// * @description: TODO 消息消费者
// * @date 2025/2/6 22:33
// * messageModel = MessageModel.CLUSTERING--------负载均衡
// * onsumerGroup="${rocketmq.consumer.group}"——————————————消费组
// * topic = "java1234-rocketmq"——————————————————主题
// */
//@RocketMQMessageListener(topic = "java1234-rocketmq",consumerGroup
//        ="${rocketmq.consumer.group}" ,messageModel = MessageModel.BROADCASTING)
//@Component
//public class ConsumerService implements RocketMQListener<String> {
//
//
//    @Override
//    public void onMessage(String s) {
//        System.out.println("消费者2：收到消息内容："+s);
//    }
//}
